package com.woniu.commentorder.console;

import com.hc.entity.Paper;
import com.woniu.commentorder.service.Paperservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("paper")
public class PaperConsole {
    @Autowired
    private Paperservice paperservice;
    @PostMapping("/seleCon")
    public List<Paper> seleBycon(@RequestBody Paper paper){
        return paperservice.seleByCon(paper);
    }
    @PostMapping("/seleAllCon")
    public List<Paper> seleByseleAllConcon(@RequestBody Paper paper){
        return paperservice.seleAllByCon(paper);
    }
}
